package cn.sdstudio.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class RelicSiteVO implements Serializable {
    private long id;
    private String description;
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "图片不能为空")
    private String cover;
    private String schedule;
    private String latitude;
    private String name;
    @NotBlank(message = "内容不能为空")
    private String content;
    private String urlPath;
    private int isFavorite;
    private Long browseNum;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createdAt;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime updateAt;
    private String material;
}
